package com.xframe.common.core.exception;

import org.springframework.http.HttpStatus;

public class BusinessException extends AbstractException{
    /**
     *
     */
    private static final long serialVersionUID = 6984855201326859766L;

    /**
     * 错误消息参数
     */
    private String args;

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    public BusinessException(HttpStatus status, int code, String message) {
        super(status, code,message);
    }

    public BusinessException(int code, String message) {
        super(HttpStatus.OK, code,message);
    }

    public BusinessException(int code, String message, String errorArg) {
        super(HttpStatus.OK, code,message);
        this.args = errorArg;
    }

    public BusinessException() {
        super(HttpStatus.OK);
    }



}
